﻿using System;
using SuperSocket.ClientEngine;

namespace PusherClient
{
    public interface IConnection : IDisposable
    {
        ConnectionState State { get; }
        event EventHandler<EventArgs> Connected;
        event EventHandler<ErrorEventArgs> Error;
        event EventHandler<EventArgs> Unavailable;
        event EventHandler<EventArgs> Disconnected;
    }
}